Skip to content

chore(sdk): sync to agent_platform@8e6b5b0 (v1.0.1)#158

Merged
abonneth merged 2 commits into
mainfrom
sync/agp-8e6b5b0
Jun 29, 2026
Merged

chore(sdk): sync to agent_platform@8e6b5b0 (v1.0.1)#158
abonneth merged 2 commits into
mainfrom
sync/agp-8e6b5b0

Conversation

@abonneth

@abonneth abonneth commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Auto-generated from agent_platform's codegen home (sdk-codegen/).

Version: 1.0.1 (patch; every sync bumps +0.0.1) · upstream flagged this a breaking change
Upstream: agent_platform@8e6b5b0

Preserve discriminator in partial PATCH models (#1401)


Note

High Risk
Upstream flagged a breaking API change: callers must migrate from string modes and flat viewport/page fields to discriminated mode objects or requests will fail or misconfigure browsers.

Overview
Bumps hai-agents to 1.0.1 (User-Agent headers, lockfile) and renames the OpenAPI product title to Computer-Use Agents.

Breaking: browser environment configuration no longer uses a top-level mode string (visual / text / multimodal) plus separate width, height, and page_chars on the browser spec. Those settings now live on a discriminated mode object (type: visual | text): visual carries viewport width/height and a markdown flag (replacing multimodal); text uses chunk_size (replacing page_chars). The same shape applies to PATCH environment updates via PatchEnvironmentMode_* variants.

Generated SDK surface changes: new BrowserTextMode / BrowserVisualMode types, environment create/update/patch clients drop the old scalar parameters and serialize mode through the union helpers; package exports and spec-default tests are updated for dropped type discriminator fields on the mode schemas.

Reviewed by Cursor Bugbot for commit 3c9ef37. Bugbot is set up for automated code reviews on this repo. Configure here.

BrowserVisualMode/BrowserTextMode drop the const+default type field on the
base model; Fern carries the visual/text tag on the BrowserMode_* variants.
Add them to FIELD_DROPPED_ENTIRELY so the spec-default guard stays green.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants